package com.thinkverse.user.entity;

import com.thinkverse.user.enums.ClaimStatusEnum;
import com.thinkverse.user.enums.RoleEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * users 表映射
 */
@Data
@NoArgsConstructor
@TableName("users")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String email;
    private String password;
    private String institution;
    private String avatar;
    private RoleEnum role;
    private ClaimStatusEnum claimStatus;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
